package org.numb.web.controller;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.Resource;
import org.mybatis.spring.boot.autoconfigure.MybatisProperties;
import org.numb.web.aop.BeforeController;
import org.numb.web.bussiness.job.repo.dao.JobDao;
import org.numb.web.config.CommonConfiguration;
import org.numb.web.config.SystemConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ApiController {

    @Resource
    private JobDao jobDao;

    @Resource
    private SystemConfiguration systemConfiguration;

    @Resource
    private CommonConfiguration commonConfiguration;

    @RequestMapping("/job/{job_id}")
    @ResponseBody
    public String test(@PathVariable("job_id") String jobId) {
        System.out.println(commonConfiguration);
        // 业务
        return jobDao.getJobStatus(jobId);
    }
}
